package com.gxc.service.log.entity;

import com.gxc.service.common.model.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author GongXincheng
 * @since 2019-11-09 02:45
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "request_info_log")
public class RequestInfoLogEntity extends BaseEntity {

    private String projectName;
    private String hostName;
    private String httpMethod;
    private String requestId;
    private String userAgent;

    /**
     * 来源系统，从Request Header中获取
     */
    private String fromSystem;
    private String domainName;
    private String clientIp;
    private String token;
    private String userId;
    private String userName;
    private String uri;
    private String url;
    private String className;
    private String methodName;
    private String methodParams;
    private Date startTime;
    private Date endTime;
    private Long consume;
    private Integer httpStatus;
    private String exception;

}
